using System;
using Admin.Model;
using Admin.IRepository;
using Admin.IService;
using System.Threading.Tasks;
using Admin.Model.RequestModel;

namespace Admin.Service
{
    /// <summary>
    /// SysRoleService
    /// </summary>	
    public class SysRoleService : BaseServices<SysRole>, ISysRoleService
    {

        private new readonly ISysRoleRepository _repository;

        public SysRoleService(ISysRoleRepository repository) : base(repository)
        {
            _repository = repository;
        }

        public async Task<int> AddSave(RequestRole role) => await _repository.AddSave(role);
        public async Task<int> EditSave(RequestRole role) => await _repository.EditSave(role);
    }
}
